{include file="public/header" /}
<style>
    body{
        background: #FFF;
    }

</style>

<div class="page">
    <a href="javascript:history.go(-1)" class="btn" title="返回上一步">返回上一步</a>
    <table class="ds-default-table order">
        <tbody>
        <!--  <tr class="space">
            <th colspan="2">{$Think.lang.order_detail}</th>
        </tr> -->
        <tr>
            <th>{$Think.lang.order_info}</th>
        </tr>
        <tr>
            <td colspan="2"><ul>
                <li><strong>{$Think.lang.ds_order_sn}:</strong>{$order_list.order_sn}</li>
                <li><strong>{$Think.lang.ds_pay_sn}</strong>{$order_list.pay_sn}</li>

                <li><strong>{$Think.lang.order_state}:</strong>
                    {if condition="($order_list.order_state==40)"}已完成
                    {elseif condition="($order_list.order_state!=40)"}{$order_status[$order_list['order_state']]}
                    {/if}
                </li>

                <li><strong>定制费用:</strong>{$order_list.project_price}</li>
                <li><strong>咨询费:</strong>{$order_list.fee_price}</li>
                <li><strong>服务费:</strong>{$order_list.charge_price}</li>
                <li><strong>实施费:</strong>{$order_list.plementation_price}</li>
                <li><strong>{$Think.lang.order_total_price}:</strong><span class="red_common">{$Think.lang.currency}{$order_list.order_amount} </span>
                    {if $order_list.refund_amount > 0}
                    ({$Think.lang.order_refund}:{$Think.lang.currency}{$order_list.refund_amount})
                    {/if}
                </li>
                <li><strong>实付款:</strong>{$Think.lang.currency}{$order_list.actual_amount}</li>
            </ul></td>
        </tr>
        <tr>
            <td><ul>
                <li><strong>{$Think.lang.ds_buyer_name}{$Think.lang.ds_colon}</strong>{$order_list.buyer_name}</li>

                <?php if(!empty($order_list['payment_time'])){ ?>
                <li><strong>{$Think.lang.ds_payment_code}{$Think.lang.ds_colon}</strong>{:get_order_payment_name($order_list['payment_code'])}</li>
                <?php }?>

                <li><strong>{$Think.lang.order_time}{$Think.lang.ds_colon}</strong>{$order_list.add_time|date='Y-m-d H:i:s',###}</li>

                <?php if(!empty($order_list['payment_time'])){ ?>
                <li><strong>支付时间</strong>
                {$order_list.payment_time|date='Y-m-d H:i:s',###}
                </li>
                <?php }?>

            </ul></td>
        </tr>
        <tr>
            <th>{$Think.lang.consignee_info}</th>
        </tr>
        <tr>
            <td><ul>
                <li><strong>{$Think.lang.consignee_name}{$Think.lang.ds_colon}</strong>{$order_list.reciver_name}</li>
                <li><strong>{$Think.lang.tel_phone}{$Think.lang.ds_colon}</strong>{$order_list.extend_order_common.reciver_info.phone|default=''}</li>
                <li><strong>{$Think.lang.address}{$Think.lang.ds_colon}</strong>{$order_list.extend_order_common.reciver_info.address|default=''}</li>
            </ul></td>
        </tr>

        <!-- 商品信息 -->
        <tr>
            <th>{$Think.lang.product_info}

            {if condition="$order_list.goodsbill eq '1' "}
            <a style="margin-left: 567px;" href="javascript:void(0);" onclick="edit_band_goods({$app_order_mall_id});" class="btn">查看商品订单</a>
            </th>
            {/if}
            
        </tr>
        <tr>
            <td><table class="ds-default-table goods ">
                <tbody>
                <tr>
                    <th>展示图</th>
                    <th>{$Think.lang.product_info}</th>
                    <th class="align-center">{$Think.lang.product_price}</th>
                    <th class="align-center">{$Think.lang.product_num}</th>
                    <!-- <th class="align-center">{$Think.lang.vrorder_commis_rate}</th>
                     <th class="align-center">{$Think.lang.vrorder_commis_price}</th>-->
                </tr>
                {foreach name="$order_list.extend_order_goods" item="goods"}
                <tr>
                    <td class="w60 picture"><div class="size-56x56"><span class="thumb size-56x56"><i></i><img  src={$goods['goods_image']} width="60" height="60"/> </span></div></td>
                    <td class="w96 align-center"><span class="red_common">{$goods.goods_name}</span></td>
                    <td class="w96 align-center"><span class="red_common">{$Think.lang.currency}{$goods.goods_price}</span></td>
                    <td class="w96 align-center">{$goods.goods_num}</td>
                 </tr>
                {/foreach}
                </tbody>
            </table>
            </td>
        </tr>

        </tbody>
    </table>
</div>
<script>

    function edit_band_goods(ids_str,ids_str2) {
        _uri = ADMINSITEURL+"/order/order_list?order_id=" + ids_str;
        dsLayerOpen(_uri,'查看','900px','500px');
    }

    
    /**
     * Layer 通用ifram弹出窗口
     */
    function dsLayerOpen(url, title,width,height) {
        if (!width) width = '900px';
        if (!height) height = '500px';
        layer.open({
            type: 2,
            title: title,
            area: [width,height],
            fixed: false, //不固定
            maxmin: true,
            content: url
        });
    }
</script>